package com.sys.entity;

import java.util.Date;

public class Commodity {
//    id,cname,batch,expiretime,purchaseprice,price,inventory,create_time,modify_time,isdel
    private Integer id;
    private String cname;
    private String batch;
    private Date expiretime;
    private Double purchaseprice;
    private Double price;
    private Integer inventory;
    private Date create_time;
    private Date modify_time;
    private Integer isdel;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public Date getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(Date expiretime) {
        this.expiretime = expiretime;
    }

    public Double getPurchaseprice() {
        return purchaseprice;
    }

    public void setPurchaseprice(Double purchaseprice) {
        this.purchaseprice = purchaseprice;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getModify_time() {
        return modify_time;
    }

    public void setModify_time(Date modify_time) {
        this.modify_time = modify_time;
    }

    public Integer getIsdel() {
        return isdel;
    }

    public void setIsdel(Integer isdel) {
        this.isdel = isdel;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                ", batch='" + batch + '\'' +
                ", expiretime=" + expiretime +
                ", purchaseprice=" + purchaseprice +
                ", price=" + price +
                ", inventory=" + inventory +
                ", create_time=" + create_time +
                ", modify_time=" + modify_time +
                ", isdel=" + isdel +
                '}';
    }
}
